<?php
require $_SERVER['DOCUMENT_ROOT'].'/../_core/common.php';

//权限验证
if( Role::init() == false ){
	exit('没有权限');
}

$db = new DB();

//用户列表
$users_sql = 'select u.id,u.uid,u.username,u.locked,ug.name from users as u join users_group as ug on (u.groupid=ug.id) where u.is_del=1 order by ug.id asc,u.id asc';
$users_rs = $db->query($users_sql)->getAll();

//职务列表
$position_sql = 'select id,name from users_group where id<>1 order by id asc';
$position_rs = $db->query($position_sql)->getAll();

require template('admin/role/user_lists');